Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Prefetch links on Artwork screen #11650

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

olerichter00
Copy link
Contributor

@olerichter00 olerichter00 commented Mar 11, 2025

This PR resolves ONYX-1582

Description

Prefetch links on Artwork screen.

PR Checklist

  • I have tested my changes on iOS and Android.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos, or I have not changed the UI.
  • I have added tests, or my changes don't require any.
  • I added an app state migration, or my changes do not require one.
  • I have documented any follow-up work that this PR will require, or it does not require any.
  • I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

  • I would like at least one of the reviewers to run this PR on the simulator or device.
Changelog updates

Changelog updates

Cross-platform user-facing changes

  • Prefetch all links on Artwork screen - ole
  • Prefetch items in Artist lists - ole

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

@olerichter00 olerichter00 self-assigned this Mar 11, 2025
@olerichter00 olerichter00 marked this pull request as draft March 11, 2025 10:22
@olerichter00 olerichter00 force-pushed the olerichter00/ONYX-1582/prefetch-links-on-artwork-screen branch from e42c7e7 to 7b84d5b Compare March 13, 2025 10:26
@olerichter00 olerichter00 marked this pull request as ready for review March 13, 2025 10:33
@@ -132,32 +130,10 @@ export const PartnerQueryRenderer: React.FC<{
partnerID: string
isVisible: boolean
}> = ({ partnerID, ...others }) => {
const { loading } = useClientQuery<PartnerInitialQuery>({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't doing anything, just delaying the initial load, so I removed it.

@ArtsyOpenSource
Copy link
Contributor

This PR contains the following changes:

  • iOS user-facing changes (Prefetch all links on Artwork screen - ole,Prefetch items in Artist lists - ole - olerichter00)

Generated by 🚫 dangerJS against daad7f7

@olerichter00 olerichter00 requested review from dariakoko and nickskalkin and removed request for MounirDhahri March 13, 2025 13:45
Copy link
Contributor

@nickskalkin nickskalkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work @olerichter00! Left a couple of questions

}
}
`}
cacheConfig={{ force: true }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why we had this force: true here before

}
}
`}
query={ArtistSeriesScreenQuery}
cacheConfig={{ force: true }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olerichter00 I've noticed that here you do not remove force: true, but in ArtistSeriesFullArtistSeriesList.tsx you do. Is it intentional?

@@ -155,23 +142,26 @@ const ArtistListItem: React.FC<Props> = ({
return null
}

const navigateOnPress = !disableNavigation && !onPress
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

took me some time to understand this. I wonder if a comment could be helpful here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants